package com.ibp.entity;

import java.util.Date;
import java.math.*;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

public class IbpEventLogData extends BasicEntity {

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date dateTime; // 日期时间

	private String timeString ; //时间字符串
	
	private String ymd; // 日期

	private String hms; // 时分秒

	private String year; // 年

	private String month; // 月

	private String week; // 周

	private String day; // 日

	private String hh; // 时

	private String mm; // 分

	private String ss; // 秒
	
	private String m10; //整10分
	
	private String s10; //整10秒

	private String logType; // 日志类型（T-交易日志<trade> O-其他日志<other>）

	private String logLevel; // 日志级别

	private String processName; // 进程名

	private String processId; // 进程id

	private String clinetNodeName; // 客户端通讯节点名

	private String clinetNodeAddress; // 客户端通讯节点地址

	private String serverNodeName; // 服务端通讯节点名

	private String serverNodeAddress; // 服务端通讯节点地址

	private String tradeCode; // 交易码

	private String tradeDescribe; // 交易描述

	private String communicateResponseCode; // 通讯响应码

	private BigDecimal tradeTotalTime; // 交易总耗时

	private BigDecimal tradeKeepTime; // 交易保持耗时

	private BigDecimal communicateReceiveTime; // 通讯接收耗时

	private BigDecimal appcationProcessTime; // 应用处理耗时

	private BigDecimal communicateSendTime; // 通讯发送耗时

	private BigDecimal tradeProcessTime; // 交易处理耗时

	private String logInfo;

	/***
	 * 以下为统计字段
	 */

	private Integer tradeAmount; // 交易总数

	/***
	 * 查询条件字段
	 */
/*	@NotNull
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")*/
	private String startTime;

/*	@NotNull
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")*/
	private String endTime;

	private String differTradeCode;

	private String tradeCountType;

	public Date getDateTime() {
		return dateTime;
	}

	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}
	
	public String getTimeString() {
		return timeString;
	}

	public void setTimeString(String timeString) {
		this.timeString = timeString;
	}

	public String getYmd() {
		return ymd;
	}

	public void setYmd(String ymd) {
		this.ymd = ymd;
	}

	public String getHms() {
		return hms;
	}

	public void setHms(String hms) {
		this.hms = hms;
	}

	public String getHh() {
		return hh;
	}

	public void setHh(String hh) {
		this.hh = hh;
	}

	public String getMm() {
		return mm;
	}

	public void setMm(String mm) {
		this.mm = mm;
	}

	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	public String getLogLevel() {
		return logLevel;
	}

	public void setLogLevel(String logLevel) {
		this.logLevel = logLevel;
	}

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public String getProcessId() {
		return processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}

	public String getClinetNodeName() {
		return clinetNodeName;
	}

	public void setClinetNodeName(String clinetNodeName) {
		this.clinetNodeName = clinetNodeName;
	}

	public String getClinetNodeAddress() {
		return clinetNodeAddress;
	}

	public void setClinetNodeAddress(String clinetNodeAddress) {
		this.clinetNodeAddress = clinetNodeAddress;
	}

	public String getServerNodeName() {
		return serverNodeName;
	}

	public void setServerNodeName(String serverNodeName) {
		this.serverNodeName = serverNodeName;
	}

	public String getServerNodeAddress() {
		return serverNodeAddress;
	}

	public void setServerNodeAddress(String serverNodeAddress) {
		this.serverNodeAddress = serverNodeAddress;
	}

	public String getTradeCode() {
		return tradeCode;
	}

	public void setTradeCode(String tradeCode) {
		this.tradeCode = tradeCode;
	}

	public String getTradeDescribe() {
		return tradeDescribe;
	}

	public void setTradeDescribe(String tradeDescribe) {
		this.tradeDescribe = tradeDescribe;
	}

	public String getCommunicateResponseCode() {
		return communicateResponseCode;
	}

	public void setCommunicateResponseCode(String communicateResponseCode) {
		this.communicateResponseCode = communicateResponseCode;
	}

	public BigDecimal getTradeTotalTime() {
		return tradeTotalTime;
	}

	public void setTradeTotalTime(BigDecimal tradeTotalTime) {
		this.tradeTotalTime = tradeTotalTime;
	}

	public BigDecimal getTradeKeepTime() {
		return tradeKeepTime;
	}

	public void setTradeKeepTime(BigDecimal tradeKeepTime) {
		this.tradeKeepTime = tradeKeepTime;
	}

	public BigDecimal getCommunicateReceiveTime() {
		return communicateReceiveTime;
	}

	public void setCommunicateReceiveTime(BigDecimal communicateReceiveTime) {
		this.communicateReceiveTime = communicateReceiveTime;
	}

	public BigDecimal getAppcationProcessTime() {
		return appcationProcessTime;
	}

	public void setAppcationProcessTime(BigDecimal appcationProcessTime) {
		this.appcationProcessTime = appcationProcessTime;
	}

	public BigDecimal getCommunicateSendTime() {
		return communicateSendTime;
	}

	public void setCommunicateSendTime(BigDecimal communicateSendTime) {
		this.communicateSendTime = communicateSendTime;
	}

	public BigDecimal getTradeProcessTime() {
		return tradeProcessTime;
	}

	public void setTradeProcessTime(BigDecimal tradeProcessTime) {
		this.tradeProcessTime = tradeProcessTime;
	}

	public Integer getTradeAmount() {
		return tradeAmount;
	}

	public void setTradeAmount(Integer tradeAmount) {
		this.tradeAmount = tradeAmount;
	}



	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getDifferTradeCode() {
		return differTradeCode;
	}

	public void setDifferTradeCode(String differTradeCode) {
		this.differTradeCode = differTradeCode;
	}

	public String getLogInfo() {
		return logInfo;
	}

	public void setLogInfo(String logInfo) {
		this.logInfo = logInfo;
	}

	public String getTradeCountType() {
		return tradeCountType;
	}

	public void setTradeCountType(String tradeCountType) {
		this.tradeCountType = tradeCountType;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public String getSs() {
		return ss;
	}

	public void setSs(String ss) {
		this.ss = ss;
	}
	
	public String getM10() {
		return m10;
	}

	public void setM10(String m10) {
		this.m10 = m10;
	}

	public String getS10() {
		return s10;
	}

	public void setS10(String s10) {
		this.s10 = s10;
	}

	@Override
	public String toString() {
		return "IbpEventLogData [dateTime=" + dateTime + ", timeString="
				+ timeString + ", ymd=" + ymd + ", hms=" + hms + ", year="
				+ year + ", month=" + month + ", week=" + week + ", day=" + day
				+ ", hh=" + hh + ", mm=" + mm + ", ss=" + ss + ", m10=" + m10
				+ ", s10=" + s10 + ", logType=" + logType + ", logLevel="
				+ logLevel + ", processName=" + processName + ", processId="
				+ processId + ", clinetNodeName=" + clinetNodeName
				+ ", clinetNodeAddress=" + clinetNodeAddress
				+ ", serverNodeName=" + serverNodeName + ", serverNodeAddress="
				+ serverNodeAddress + ", tradeCode=" + tradeCode
				+ ", tradeDescribe=" + tradeDescribe
				+ ", communicateResponseCode=" + communicateResponseCode
				+ ", tradeTotalTime=" + tradeTotalTime + ", tradeKeepTime="
				+ tradeKeepTime + ", communicateReceiveTime="
				+ communicateReceiveTime + ", appcationProcessTime="
				+ appcationProcessTime + ", communicateSendTime="
				+ communicateSendTime + ", tradeProcessTime="
				+ tradeProcessTime + ", logInfo=" + logInfo + ", tradeAmount="
				+ tradeAmount + ", startTime=" + startTime + ", endTime="
				+ endTime + ", differTradeCode=" + differTradeCode
				+ ", tradeCountType=" + tradeCountType + "]";
	}




}
